CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

project(okvis_kinematics)

SET(BUILD_TYPE Release)

# require Eigen3
#find_package( Eigen REQUIRED )
#include_directories(${EIGEN_INCLUDE_DIR})

# build the library
#add_library(${PROJECT_NAME} STATIC include/okvis/kinematics/implementation/Transformation.hpp
#include/okvis/kinematics/operators.hpp
#include/okvis/kinematics/Transformation.hpp)
add_library(${PROJECT_NAME} STATIC src/dependency-tracker.cc)

# SET_TARGET_PROPERTIES(okvis_kinematics PROPERTIES LINKER_LANGUAGE CXX)

# and link it                     
target_link_libraries(${PROJECT_NAME}
        PUBLIC okvis_util
        )

# installation if required
#install(TARGETS ${PROJECT_NAME}
#  EXPORT okvisTargets
#  ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib
#)
#install(DIRECTORY include/ DESTINATION ${INSTALL_INCLUDE_DIR} COMPONENT dev FILES_MATCHING PATTERN "*.hpp")

# testing
#if(BUILD_TESTS)
#  if(APPLE)
#    add_definitions(-DGTEST_HAS_TR1_TUPLE=1)
#  else()
#    add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
#  endif(APPLE)
#  enable_testing()
#  set(PROJECT_TEST_NAME ${PROJECT_NAME}_test)
#  add_executable(${PROJECT_TEST_NAME}
#    test/runTests.cpp
#    test/TestTransformation.cpp
#  )
#  target_link_libraries(${PROJECT_TEST_NAME}
#    ${PROJECT_NAME}
#    ${GTEST_LIBRARY}
#    pthread)
#  add_test(test ${PROJECT_TEST_NAME})
#endif()
